Jump to content

  • Log In with Google      Sign In   
  • Create Account


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


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   -  Reputation: 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. 

 



Sponsor:



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.



PARTNERS