Jump to content

View more

Image of the Day

Isn't this a lovely apple tempart placeholder thing  #gamedev worth a #screenshotsaturday even I would say. https://t.co/fQH1d0ySIG
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

Need help on how to instantiate a class in Boo in Unity

2: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 Cdrandin   Members   

443
Like
0Likes
Like

Posted 11 January 2013 - 01:26 AM

Here is the post, Kinda long and was neatly prepared here.  The class itself isn't really important, just the initial setup.

http://answers.unity3d.com/questions/378485/how-can-i-instantiate-my-variables-in-boo-having-p.html

 

I got it to work in Unityscript, but I prefer to use Boo.  Also, if someone could explain why this is happening.

 

I also got Unity to stop complaining with the following:

class CombatController (MonoBehaviour): 
	public Robo as PlayerAttributes
	
	def Start ():
		Robo = GetComponent(PlayerAttributes)
		Robo.SetInitialStats('Robo', 20, 21, 19, 20, 18, 22, 22, 57000)

 

But my Robo variable which is of class PlayerAttributes is't affected at all according to the inspector. 

 






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.